/*
 * @Description: 行程结束(等待乘客付款) EndTrip
 * @version: 
 * @Company: 
 * @Author: ZhengZhuang
 * @Date: 2019-08-29 09:07:16
 * @LastEditors: zhengzhuang
 * @LastEditTime: 2020-08-04 10:11:43
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:C20Driver/widget/order_taking_operation_widget.dart';

class EndTrip extends StatelessWidget {
  final String money;
  EndTrip({this.money});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('行程结束'),
      ),
      body: Container(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: <Widget>[
            Center(
              child: Column(
                children: <Widget>[
                  SizedBox(
                    height: ScreenUtil().setWidth(80.0),
                  ),
                  Chip(
                    label: Text('待支付'),
                  ),
                  SizedBox(
                    height: ScreenUtil().setWidth(10.0),
                  ),
                  RichText(
                    text: TextSpan(
                      text: money,
                      style: TextStyle(
                        fontSize: ScreenUtil().setSp(72.0),
                        fontWeight: FontWeight.w700,
                        color: Colors.black,
                      ),
                      children: <TextSpan>[
                        TextSpan(
                          text: '元',
                          style: TextStyle(
                            fontSize: ScreenUtil().setSp(34.0),
                            color: Colors.black54,
                          ),
                        )
                      ],
                    ),
                  ),
                ],
              ),
            ),
            Container(
              width: ScreenUtil().setWidth(750.0),
              height: ScreenUtil().setWidth(140.0),
              color: Colors.white,
              child: OrderTakingOperationWidget(),
            )
          ],
        ),
      ),
    );
  }
}
